package day240125;

import java.util.Scanner;

public class CurrencyConverter {
    public static void main(String[] args) {
        //提示信息
        System.out.println("请输入美元金额：");
        //接受用户输入
        Scanner scanner = new Scanner(System.in);
        double dollar = scanner.nextDouble();
        //计算
        double exchangeRate = 7.1522;
        System.out.println("当前汇率：1美元约等于" + exchangeRate + "人民币");
        double money = dollar * exchangeRate;
        System.out.println("按当前汇率计算对应的人民币金额为：" + money);
    }
}
